import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import path from 'path'
import { viteMockServe } from "vite-plugin-mock";

// https://vitejs.dev/config/
export default defineConfig({
    alias: {
        '@': path.resolve(__dirname, "src"),
        'components': path.resolve(__dirname, "src/components"),
        'api': path.resolve(__dirname, "src/api"),
        'views': path.resolve(__dirname, "src/views"),
        'utils': path.resolve(__dirname, "src/utils"),
        'store': path.resolve(__dirname, "src/store"),
        'router': path.resolve(__dirname, "src/router"),
        'styles': path.resolve(__dirname, "src/styles"),
        'plugins': path.resolve(__dirname, "src/plugins"),
    },
    plugins: [vue(), viteMockServe({ supportTs: false })]
})